package com.vent;

import com.vent.mirai.MiraiService;
import com.vent.mirai.events.GroupEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 启动程序
 *
 * @author ZiXiu
 */
@SpringBootApplication
public class SharesRemindApplication
{
    public static void main(String[] args)
    {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SharesRemindApplication.class, args);

        // 启动Mirai
        MiraiService miraiService = new MiraiService(applicationContext.getBean(GroupEvent.class));
        miraiService.startMirai();

        System.out.println("(♥◠‿◠)ﾉﾞ  系统启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }
}
